﻿using System;

namespace HookupAppForm.Dto
{
    public class CreateHKP_TakeoffDto
    {
        /// <summary>
        /// 接点编号
        /// </summary>
        public string TakeoffNo { get; set; }
        /// <summary>
        /// 接点名称
        /// </summary>
        public string TakeoffName { get; set; }
        /// <summary>
        /// 管道系统ID
        /// </summary>
        public Guid SubmainId { get; set; }
        /// <summary>
        /// 接点尺寸
        /// </summary>
        public string OutSize { get; set; }
        /// <summary>
        /// 尺寸单位
        /// </summary> 
        public string OutSizeUnit { get; set; }
        /// <summary>
        /// 接点形式
        /// </summary>
        public string OutType { get; set; }
        /// <summary>
        /// 接点位置
        public string Position { get; set; }
        /// <summary>
        /// 设计流量负荷
        /// </summary>
        public decimal FlowPeak { get; set; }
        /// <summary>
        /// 操作流量负荷
        /// </summary>
        public decimal FlowPeakOperation { get; set; }
        /// <summary>
        /// 平均流量
        /// </summary>        
        public decimal FlowAvg { get; set; }
        /// <summary>
        /// 最小流量
        /// </summary>        
        public decimal FlowMin { get; set; }

        public string FlowUnit { get; set; }
        /// <summary>
        /// 设计压力负荷
        /// </summary>
        public decimal PressurePeak { get; set; }
        /// <summary>
        /// 操作压力负荷
        /// </summary>
        public decimal PressurePeakOper { get; set; }
        /// <summary>
        /// 平均压力
        /// </summary>
        public decimal PressureAvg { get; set; }
        /// <summary>
        /// 最小压力
        /// </summary>
        public decimal PressureMin { get; set; }
        /// <summary>
        /// 压力单位
        /// </summary>
        public string PressureUnit { get; set; }
        /// <summary>
        /// 设计功率负荷
        /// </summary>
        public decimal Power { get; set; }
        /// <summary>
        /// 操作功率负荷
        /// </summary>
        public decimal PowerOper { get; set; }
        /// <summary>
        /// 平均功率
        /// </summary>
        public decimal PowerAvg { get; set; }
        /// <summary>
        /// 最小功率
        /// </summary>
        public decimal PowerMin { get; set; }
        /// <summary>
        /// 功率单位
        /// </summary>
        public string PowerUnit { get; set; }
        /// <summary>
        /// 阀门需求
        /// </summary>
        public bool NeedValve { get; set; }
        /// <summary>
        /// 调压阀需求
        /// </summary>
        public bool NeedTap { get; set; }
        /// <summary>
        /// 压力表需求
        /// </summary>
        public bool NeedPreGauge { get; set; }
        /// <summary>
        /// 过滤器需求
        /// </summary>
        public bool NeedFilter { get; set; }
        /// <summary>
        /// 流量计需求
        /// </summary>
        public bool NeedFlowmeter { get; set; }
        /// <summary>
        /// 存水弯需求
        /// </summary>
        public bool NeedTrap { get; set; }
        /// <summary>
        /// 蜂鸣需求
        /// </summary>
        public bool NeedBellow { get; set; }
        /// <summary>
        /// 最低回水温度
        /// </summary>
        public decimal TemperatureWRTMin { get; set; }
        /// <summary>
        /// 最高回水温度
        /// </summary>
        public decimal TemperatureWRTMax { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public decimal ElcCurrent { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public decimal Voltage { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 已使用
        /// </summary>
        public bool Used { get; set; }
        public string Remark { get; set; }
        public long BlockId { get; set; }
        public int OrderIndex { get; set; }
        public decimal X { get; set; }
        public decimal Y { get; set; }
        public decimal XAbs { get; set; } = 0;
        public decimal YAbs { get; set; } = 0;
        /// <summary>
        /// 点数
        /// </summary>
        public string Point { get; set; }
        /// <summary>
        /// 点数类型
        /// </summary>
        public string PointType { get; set; }
        /// <summary>
        /// 总点数
        /// </summary>
        public string AllPoint { get; set; }
        /// <summary>
        /// 接入的机台接点编号
        /// </summary>
        public string toolSysNo { get; set; }
        /// <summary>
        /// 接入机台编号
        /// </summary>
        public string toolNo { get; set; }
    }
    public class HKP_TakeoffDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 接点编号
        /// </summary>
        public string TakeoffNo { get; set; }
        /// <summary>
        /// 接点名称
        /// </summary>
        public string TakeoffName { get; set; }
        /// <summary>
        /// 管道系统ID
        /// </summary>
        public Guid SubmainId { get; set; }
        /// <summary>
        /// 接点尺寸
        /// </summary>
        public string OutSize { get; set; }
        /// <summary>
        /// 接点形式
        /// </summary>
        public string OutType { get; set; }
        /// <summary>
        /// 接点位置
        /// </summary>
        public string Position { get; set; }
        /// <summary>
        /// 设计流量负荷
        /// </summary>
        public decimal FlowPeak { get; set; }
        /// <summary>
        /// 操作流量负荷
        /// </summary>
        public decimal FlowPeakOperation { get; set; }
        /// <summary>
        /// 平均流量
        /// </summary>        
        public decimal FlowAvg { get; set; }
        /// <summary>
        /// 最小流量
        /// </summary>        
        public decimal FlowMin { get; set; }
        public string FlowUnit { get; set; }
        /// <summary>
        /// 设计压力负荷
        /// </summary>
        public decimal PressurePeak { get; set; }
        /// <summary>
        /// 操作压力负荷
        /// </summary>
        public decimal PressurePeakOper { get; set; }
        /// <summary>
        /// 平均压力
        /// </summary>
        public decimal PressureAvg { get; set; }
        /// <summary>
        /// 最小压力
        /// </summary>
        public decimal PressureMin { get; set; }
        /// <summary>
        /// 压力单位
        /// </summary>
        public string PressureUnit { get; set; }
        /// <summary>
        /// 设计功率负荷
        /// </summary>
        public decimal Power { get; set; }
        /// <summary>
        /// 操作功率负荷
        /// </summary>
        public decimal PowerOper { get; set; }
        /// <summary>
        /// 平均功率
        /// </summary>
        public decimal PowerAvg { get; set; }
        /// <summary>
        /// 最小功率
        /// </summary>
        public decimal PowerMin { get; set; }
        /// <summary>
        /// 功率单位
        /// </summary>
        public string PowerUnit { get; set; }
        /// <summary>
        /// 阀门需求
        /// </summary>
        public bool NeedValve { get; set; }
        /// <summary>
        /// 调压阀需求
        /// </summary>
        public bool NeedTap { get; set; }
        /// <summary>
        /// 压力表需求
        /// </summary>
        public bool NeedPreGauge { get; set; }
        /// <summary>
        /// 过滤器需求
        /// </summary>
        public bool NeedFilter { get; set; }
        /// <summary>
        /// 流量计需求
        /// </summary>
        public bool NeedFlowmeter { get; set; }
        /// <summary>
        /// 存水弯需求
        /// </summary>
        public bool NeedTrap { get; set; }
        /// <summary>
        /// 蜂鸣需求
        /// </summary>
        public bool NeedBellow { get; set; }
        /// <summary>
        /// 最低回水温度
        /// </summary>
        public decimal TemperatureWRTMin { get; set; }
        /// <summary>
        /// 最高回水温度
        /// </summary>
        public decimal TemperatureWRTMax { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public decimal ElcCurrent { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        public decimal Voltage { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 已使用
        /// </summary>
        public bool Used { get; set; }
        public string Remark { get; set; }
        public long BlockId { get; set; }
        public int OrderIndex { get; set; }
        public string OutSizeUnit { get; set; }
        public decimal X { get; set; }
        public decimal Y { get; set; }
        public decimal XAbs { get; set; }
        public decimal YAbs { get; set; }
        public string SysName { get; set; }
        public string BlockName { get;   set; }
        public string SubmainName { get;   set; }
        public decimal UsedFlow { get; set; }
        /// <summary>
        /// 已使用点数
        /// </summary>
        public string Point { get; set; }
        /// <summary>
        /// 来源区分，1电盘，2ES
        /// </summary>
        public string PointType { get; set; }
        /// <summary>
        /// 总点数
        /// </summary>
        public string AllPoint { get; set; }
        /// <summary>
        /// 接入的机台接点编号
        /// </summary>
        public string toolSysNo { get; set; }
        /// <summary>
        /// 接入机台编号
        /// </summary>
        public string toolNo { get; set; }
    }

    public class HKP_TakeoffDtoChk
    {
        public bool Checked { get; set; }
        public Guid Id { get; set; }
        /// <summary>
        /// 接点编号
        /// </summary>
        public string TakeoffNo { get; set; }
        /// <summary>
        /// 接点名称
        /// </summary>
        public string TakeoffName { get; set; }
        /// <summary>
        /// 管道系统ID
        /// </summary>
        public Guid SubmainId { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; }
        /// <summary>
        /// 已使用
        /// </summary>
        public bool Used { get; set; }
        public long BlockId { get; set; }
        public HKP_SubmainDto Submain { get; set; }
        public string OutSize { get; set; }        
        public string OutType { get; set; }        
        public string Reason { get; set; }
        /// <summary>
        /// 设计流量负荷
        /// </summary>
        public decimal FlowPeak { get; set; }
        /// <summary>
        /// 操作流量负荷
        /// </summary>
        public decimal FlowPeakOperation { get; set; }       
        /// <summary>
        /// 平均流量
        /// </summary>        
        public decimal FlowAvg { get; set; }
        /// <summary>
        /// 最小流量
        /// </summary>        
        public decimal FlowMin { get; set; }
        public string FlowUnit { get; set; }
        public string OutSizeTool { get; set; }
        public string OutTypeTool { get; set; }        
        public decimal FlowPeakTool { get; set; }
        /// <summary>
        /// 系统编号
        /// </summary>
        public string SysNo { get; set; }
        public string OutSizeUnit { get; set; }
        public string FlowPeakToolUnit { get; set; }
        public Guid ToolSysReqId { get; set; }
        public decimal X { get; set; }
        public decimal Y { get; set; }
        public decimal XAbs { get; set; }
        public decimal YAbs { get; set; }
        public double Distence { get; set; }

    }
}
